<div ng-controller="MemberCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'会员'|translate}}</li>
        <li class="active">
            {{'选择小程序查询会员：' | translate}}
            <wx-app-list ng-model="wxappid" dft="1" ary="ary" storedata="1" callbacks="wxaacallback(app_id)">
            </wx-app-list>
        </li>
        <span class="sui-form sui-form pull-right">
            <input type="text" placeholder="{{'会员昵称'|translate}}" ng-model="name">
            <input type="text" placeholder="{{'备注'|translate}}" ng-model="remark">
            <member-level ng-model="level_id"></member-level>
            <button class="sui-btn btn-primary" type="submit" ng-click="getlist()">{{'search'|translate}}</button>
            <export-data type="4" appid="wxappid"> </export-data>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'昵称'|translate}}</th>
                <th>{{'头像'|translate}}</th>
                <th>{{'手机号'|translate}}</th>
                <th>{{'备注'|translate}}</th>
                <th>{{'会员等级'|translate}}</th>
                <th>{{'操作'|translate}}</th>
                <!-- <th>{{'城市'|translate}}</th> -->
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(k ,list) in users">
                <td>{{list.member_id}}</td>
                <td>
                    {{list.nick_name}}
                </td>
                <td><img ng-src="{{list.avatar_url}}" width="60px"></td>
                <td>
                    {{list.phone}}
                </td>
                <td>
                    {{list.remark}}
                </td>
                <td>
                    <item-name type="'level'" ng-model="list.level" member-id="list.member_id"></item-name>
                    <choose-level ng-model="list.level" mult="no" backcall="upLevel(member_level_id,list.member_id)"></choose-level>
                </td>
                <td>
                    <!-- <a href="#/member/account?member_id={{list.member_id}}" class="sui-btn btn-success">账户信息</a> -->
                    <a href="#/member/info?member_id={{list.member_id}}" class="sui-btn btn-success">会员信息</a>
                    <a href="#/member/add?member_id={{ list.member_id }}" class="sui-btn btn-info">{{ "edit" | translate }}</a>
                    <send-mb-msg title="'发送消息'" user-id="list.member_id" seller="1" app_id="wxappid" chosed-type="'template'"></send-mb-msg>
                </td>
                <!-- <td>{{list.city}}</td> -->
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="total_count" get-data="getlist(pageNo)"></pager>
    <!-- 分页end -->